import request from '@/plugins/request';
// 部门列表
export function projectList(data) {
    return request({
      url: "/v1/project/list",
      method: "get",
      params: data,
    });
}
  
  //新增部门
export function createProject(data) {
    return request({
        url: "/v1/project/create",
        method: "post",
        data,
    });
}

//删除部门
export function deleteProject(data) {
    return request({
        url: "/v1/project/delete",
        method: "post",
        data,
    });
}

// 部门详情
export function projectInfo(data) {
    return request({
      url: "/v1/project/info",
      method: "get",
      params: data,
    });
}
  
//编辑部门
export function updateProject(data) {
    return request({
        url: "/v1/project/update",
        method: "post",
        data,
    });
}
// 项目管理员详情
export function adminInfo(data) {
    return request({
      url: "/v1/project/admin-info",
      method: "get",
      params: data,
    });
  }
  
  //设置项目管理员
  export function editAdmin(data) {
    return request({
        url: "/v1/project/edit-admin",
        method: "post",
        data,
    });
  }